package enuma;

/**
 * @classname:MyEnum
 * @description:
 * @author: Mr.Z
 * @date: 2020/12/22 20:08
 * @version: 0.1
 * @since:1.8
 */

public enum MyEnum {


    //先有对象
    OBJ1(1001,"s"){
        public int num  = 100;

    },
    OBJ2(1002,"w"),
    OBJ3(1003,"a");
    private Integer id;
    private String name;

    public Integer getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    MyEnum(Integer id,String name){
       this.id = id;
       this.name = name;
    }



}
